<?php
namespace app\admin\model;

use think\Model;
use think\Db;
class Menu extends Model{
    public function getTypeAttr($value)
    {
        $type = [0=>'管理后台',1=>'代理商后台'];
        return $type[$value];
    }
}